package com.wzh.project.redis.config;

import java.util.ArrayList;
import java.util.List;

public class RedisConfig {
	private List<String[]> hostAndPortList= new ArrayList<String[]>();
	private Boolean singleMode;
	private int maxIdleCons = 100 ;
	private	int maxTolalCons = 500 ;
	private	int minIdleCons =  0;
	private	int maxWaitTime =  2000;
	
	private int consumerThreadCount=1;
	private int consumerMaxThread=100;
	
	private String requestQueue;
	
	private String role;
	
	private int connectionTimeout;
	private int soTimeout;
	private int maxAttempts;
	public int getConnectionTimeout() {
		return connectionTimeout;
	}

	public void setConnectionTimeout(int connectionTimeout) {
		this.connectionTimeout = connectionTimeout;
	}

	public int getSoTimeout() {
		return soTimeout;
	}

	public void setSoTimeout(int soTimeout) {
		this.soTimeout = soTimeout;
	}

	public int getMaxAttempts() {
		return maxAttempts;
	}

	public void setMaxAttempts(int maxAttempts) {
		this.maxAttempts = maxAttempts;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	private String password;
	
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getRequestQueue() {
		return requestQueue;
	}

	public void setRequestQueue(String requestQueue) {
		this.requestQueue = requestQueue;
	}

	public int getConsumerMaxThread() {
		return consumerMaxThread;
	}

	public void setConsumerMaxThread(int consumerMaxThread) {
		this.consumerMaxThread = consumerMaxThread;
	}

	public int getConsumerThreadCount() {
		return consumerThreadCount;
	}

	public void setConsumerThreadCount(int consumerThreadCount) {
		this.consumerThreadCount = consumerThreadCount;
	}

	public int getMaxIdleCons() {
		return maxIdleCons;
	}

	public void setMaxIdleCons(int maxIdleCons) {
		this.maxIdleCons = maxIdleCons;
	}

	public int getMaxTolalCons() {
		return maxTolalCons;
	}

	public void setMaxTolalCons(int maxTolalCons) {
		this.maxTolalCons = maxTolalCons;
	}

	public int getMinIdleCons() {
		return minIdleCons;
	}

	public void setMinIdleCons(int minIdleCons) {
		this.minIdleCons = minIdleCons;
	}

	public int getMaxWaitTime() {
		return maxWaitTime;
	}

	public void setMaxWaitTime(int maxWaitTime) {
		this.maxWaitTime = maxWaitTime;
	}

	public boolean isTestOnBorrow() {
		return testOnBorrow;
	}

	public void setTestOnBorrow(boolean testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}

	private	boolean testOnBorrow=true;
	
	public Boolean getSingleMode() {
		return singleMode;
	}

	public void setSingleMode(Boolean singleMode) {
		this.singleMode = singleMode;
	}

	public List<String[]> getHostAndPortList() {
		return hostAndPortList;
	}
}
